/**
 * @Title: stationController.java
 * @Package tt.dz.mvc.controller.sys
 * @author pengyu
 * @date 2015年12月17日 上午10:21:55
 * @version V1.0
 */
package tt.dz.mvc.controller.sys;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import tt.dz.entity.base.JsonForList;
import tt.dz.service.sys.ProvinceService;

@Controller
public class ProvinceController {
	@Resource
	ProvinceService provinceService;
	@SuppressWarnings("rawtypes")
	@RequestMapping("/getAllArea")
	@ResponseBody
	public JsonForList getAllArea(HttpServletRequest request, HttpServletResponse response) throws Exception {
		return provinceService.getAll();
	}
	@SuppressWarnings("rawtypes")
	@RequestMapping("/getProviceAndCityByPinyin")
	@ResponseBody
	public JsonForList getProviceAndCityByPinyin(HttpServletRequest request, HttpServletResponse response) throws Exception {
		return provinceService.getProviceAndCityByPinyin();
	}
	@SuppressWarnings("rawtypes")
	@RequestMapping("/emptyRequest")
	@ResponseBody
	public JsonForList emptyRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
		return null;
	}
}
